package com.dezheyun;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@MapperScan("com.dezheyun.dao")
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)  //三种授权模式注解
//@EnableGlobalMethodSecurity(jsr250Enabled = true)
//@EnableGlobalMethodSecurity(securedEnabled = true)
public class DezheyunApplication {

    public static void main(String[] args) {
        SpringApplication.run(DezheyunApplication.class, args);
    }

}
